﻿using MyGrid.Core;
using MyGrid.Core.HexTypeA.Visual;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyGrid.Test
{
    internal class Example04
    {
        static void Main(string[] args)
        {
            float _unitSize = 30;
            float _zoom = 1f;
            MGVector2F _focusPos = new MGVector2F(0,0);

            // -6 16
            var pos = new MGVector2F(-157, -2);
            var yId = HexTypeAHitTester.ConvertPosToGridYId(pos, _unitSize * _zoom);

            var result = yId;
            Console.WriteLine(result);
        }
    }
}
